package pojo;

import java.util.Date;

/**
 * 优惠券实体类
 *
 * @author Jamin
 */

public class Coupon {
    /**
     * 优惠券id
     */
    private int cID;
    /**
     * 优惠券图片
     */
    private String cImage;
    /**
     * 优惠券描述
     */
    private String cDescription;
    /**
     * 满足条件
     */
    private int cTerm;
    /**
     * 优惠价格
     */
    private int cVipPrice;
    /**
     * 截止时间
     */
    private Date cDeadline;

    @Override
    public String toString() {
        return "Coupon{" +
                "cID=" + cID +
                ", cImage='" + cImage + '\'' +
                ", cDescription='" + cDescription + '\'' +
                ", cTerm=" + cTerm +
                ", cVipPrice=" + cVipPrice +
                ", cDeadline=" + cDeadline +
                '}';
    }

    public int getcID() {
        return cID;
    }

    public void setcID(int cID) {
        this.cID = cID;
    }

    public String getcImage() {
        return cImage;
    }

    public void setcImage(String cImage) {
        this.cImage = cImage;
    }

    public String getcDescription() {
        return cDescription;
    }

    public void setcDescription(String cDescription) {
        this.cDescription = cDescription;
    }

    public int getcTerm() {
        return cTerm;
    }

    public void setcTerm(int cTerm) {
        this.cTerm = cTerm;
    }

    public int getcVipPrice() {
        return cVipPrice;
    }

    public void setcVipPrice(int cVipPrice) {
        this.cVipPrice = cVipPrice;
    }

    public Date getcDeadline() {
        return cDeadline;
    }

    public void setcDeadline(Date cDeadline) {
        this.cDeadline = cDeadline;
    }

    public Coupon(int cID, String cImage, String cDescription, int cTerm, int cVipPrice, Date cDeadline) {
        this.cID = cID;
        this.cImage = cImage;
        this.cDescription = cDescription;
        this.cTerm = cTerm;
        this.cVipPrice = cVipPrice;
        this.cDeadline = cDeadline;
    }

    public Coupon() {
    }
}
